package cn.main.utils;

/**
 * Author: chengwei
 * Date:   2016/5/12
 * Time:   10:01
 */
public enum ResponseMethod {
    FORWARD("转发",1),
    ONLY_FORWARD("仅转发",2),
    REDIRECT("重定向",4),
    TREE("树",8),
    DATA_GRID("数据表",16),
    JSON("json",32),
    AJAX("ajax",64);

    private String name;
    private int code;
    
    ResponseMethod(String name, int code) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
